Skip to content

Update azure-identity for pylint 4.0.4 compatibility#47377

Draft
Copilot wants to merge 3 commits into
mainfrom
copilot/azure-identity-linting-updates
Draft

Update azure-identity for pylint 4.0.4 compatibility#47377
Copilot wants to merge 3 commits into
mainfrom
copilot/azure-identity-linting-updates

Conversation

Copilot AI commented Jun 5, 2026

Copy link
Copy Markdown
Contributor

azure-identity has a small set of pylint 4.0.4 compatibility issues that will turn into build failures when the repo updates its pinned version. The new warnings were limited to workload identity transport imports and a sample credential implementation.

Automated Fix: This PR was automatically generated by Copilot in response to a vnext compatibility issue.

  • Workload identity transport imports

    • Added targeted networking-import-outside-azure-core-transport suppressions on the requests imports used by the token-binding transport implementations.
    • Kept the change local to the intentional transport extension points rather than broadening package-level suppression.
  • Sample credential cleanup

    • Updated samples/custom_credentials.py to satisfy pylint 4.0.4 docstring requirements for get_token.
    • Added explicit exception chaining when converting MSAL failures into AuthenticationRequiredError.
    • Normalized import grouping in the sample.
  • Scope

    • No changelog, version, formatting, or generated-code updates.
    • No functional library behavior changes beyond the sample’s error propagation being made explicit.

Example of the targeted changes:

from requests import Session  # pylint: disable=networking-import-outside-azure-core-transport

try:
    return AccessToken(result["access_token"], now + int(result["expires_in"]))
except Exception as ex:
    raise AuthenticationRequiredError(scopes) from ex

Copilot AI and others added 2 commits June 5, 2026 23:24
Co-authored-by: azure-sdk <53356347+azure-sdk@users.noreply.github.com>
Co-authored-by: azure-sdk <53356347+azure-sdk@users.noreply.github.com>
Copilot AI changed the title [WIP] Update azure-identity for pylint version 4.0.4 linting errors Update azure-identity for pylint 4.0.4 compatibility Jun 5, 2026
Copilot AI requested a review from azure-sdk June 5, 2026 23:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

azure-identity needs linting updates for pylint version 4.0.4

2 participants